package com.jinliang.blogweb.controller;

import com.jinliang.blogweb.entity.Article;
import com.jinliang.blogweb.entity.Label;
import com.jinliang.blogweb.mapper.LabelMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.List;

@RestController
@RequestMapping(value = "label")
public class LabelController {

    @Autowired
    LabelMapper labelMapper;
    @RequestMapping("/getList")
    public List<Label> getObjByParamList() {
        HashMap<String, Object> objectObjectHashMap = new HashMap<>();
        List<Label> articles = labelMapper.selectByMap(objectObjectHashMap);
        return articles;
    }

}
